const fs = require('fs');
const path = require('path');
var filePath = path.join(__dirname,'/2.txt');
var readable = fs.createReadStream(filePath);
console.log(readable)
var writeable = fs.createWriteStream(path.join(__dirname,'/4.txt'));
console.log(writeable)
readable.pipe(writeable);